package com.zrrd.service;

import com.zrrd.common.bo.RuleBo;
import com.zrrd.common.vo.RulePageVo;
import com.zrrd.entity.Rule;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wanjl
 * @since 2024-09-09
 */
public interface RuleService extends IService<Rule> {

    /**
     * 根据角色id查询权限列表并分级
     * @param roleId
     * @return
     */
    List<RuleBo> getRuleListByRoleId(Integer roleId);

    /**
     * 分页查询
     * @param page
     * @return
     */
    RulePageVo findByPage(Integer page);
}
